#pragma once

#include "pch.h"

namespace Web
{
    struct SockAddrIn
    {
        struct sockaddr_in m_AddrIn;

        const char *GetIP() const;
        
        unsigned int GetPort() const;

        unsigned int GetFamily() const;

        void SetFamilyHostPort(int family, const char* host, unsigned int port);

        void SetFamilyAddrPort(int family, int addr, int  port);

        void SetAddr(const unsigned int &);
        
        void SetHost(const char *);
    
        void SetPort(const unsigned int &);
        
        void SetFamily(const unsigned int &);
        
        struct sockaddr *GetSockAddr() const;
    };
}